package com.weacar.view;

import android.content.Context;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.bumptech.glide.load.resource.bitmap.CenterCrop;
import com.gcssloop.widget.RCImageView;
import com.youth.banner.loader.ImageLoader;

public class GlideImageLoader extends ImageLoader {
    @Override
    public void displayImage(Context context, Object path, ImageView imageView) {

        // imageView.setScaleType(ImageView.ScaleType.FIT_XY);
        //Glide 加载图片圆角用法transform(new CenterCrop(context), new GlideRoundTransform(context, 10))
        Glide.with(context).load(path).into(imageView);
    }


//    @Override
////    public ImageView createImageView(Context context) {
////        RCImageView img = new RCImageView(context);
////        img.setRadius(20);
////        return img;
////    }
}
